package com.logistic.service;

import java.util.List;

import com.logistic.domain.Article;
import com.logistic.domain.ConsumeRecord;
import com.logistic.domain.User;
import com.logistic.page.QueryResult;

public interface UserService {

	User checkLogin(User user);
	
	@SuppressWarnings("rawtypes")
	List findRecordAll(String sort);
	
	String save(User user);
	
	void modify(User user);
	
	void deleteByIdStr(String idStr);
	
	public boolean checkEmailExist(String email);
	
	public boolean checkUidExist(String uId);
	
	public boolean checkUreceveIdExist(String uId);
	
	public User getUserByUid(User user);
	
	public User getUserByUreceiveId(User user);
	
	public void changePassword(User user, String pass);
	
	int createChargeRecord(ConsumeRecord record);
	
	ConsumeRecord getChargeRecord(String id);
	
	void updateChargeRecord(String id, String flag);
	
	QueryResult showConsumptionHistory(String Uid,int first,int max, String action);
	
	void createArticle(Article article);
	
	List getArticle(String type, int count);
}
